﻿using System.Globalization;

namespace LearnMAUI2.Converters;

public class TodayPoetrySourceToBoolConverter : IValueConverter
{
    public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
    {
        return value is string source && parameter is string expectedSource &&
    source == expectedSource;
    }

    public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
